package icu.d4peng.cloud.user.constant;

/**
 * @author d4peng
 * @version 1.0.0
 * @date 2022-01-01 10:27
 * @description UserConstant:用户常量
 */
public enum UserConstant {
    DEFAULT("default", "default cache name"),
    USER("USER", "user info cache name"),
    CODE("CODE", "code info cache name"),
    TOKEN("TOKEN", "token info cache name"),
    /**
     * 验证码
     */
    CAPTCHA("CAPTCHA", "captcha info cache name"),
    ;

    /**
     * 缓存名称
     */
    private final String value;
    /**
     * 缓存描述
     */
    private final String desc;

    UserConstant(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String value() {
        return value;
    }

    public String desc() {
        return desc;
    }
}
